package com.zoo.diannaopeijian.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * Created by zx583 on 2018-01-01.
 */
@Controller
public class IndexController extends BaseController {

    @RequestMapping(value="/",method= RequestMethod.GET)
    public String index() {
        if (super.isLogin()) {
            return "redirect:/homePage";
        } else {
            return "redirect:/loginPage";
        }
    }
}
